package vistas;

import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
@SuppressWarnings("serial")
public class FrmMenuConsultas extends javax.swing.JFrame {

	private JLabel lblMenuConsultas;
	private JButton btnCalendario;
	private JButton btnTablaPosicion;
	private JButton btnSalir;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public FrmMenuConsultas() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				lblMenuConsultas = new JLabel();
				getContentPane().add(lblMenuConsultas);
				lblMenuConsultas.setText("Consultas");
				lblMenuConsultas.setBounds(50, 50, 600, 60);
				lblMenuConsultas.setFont(new java.awt.Font("Dialog",1,32));
				lblMenuConsultas.setHorizontalAlignment(SwingConstants.CENTER);
			}
			{
				btnCalendario = new JButton();
				getContentPane().add(btnCalendario);
				btnCalendario.setText("Calendario");
				btnCalendario.setBounds(100, 200, 160, 50);
			}
			{
				btnTablaPosicion = new JButton();
				getContentPane().add(btnTablaPosicion);
				btnTablaPosicion.setText("Tabla de Posición");
				btnTablaPosicion.setBounds(440, 200, 160, 50);
			}
			{
				btnSalir = new JButton();
				getContentPane().add(btnSalir);
				btnSalir.setText("Salir");
				btnSalir.setBounds(270, 350, 160, 50);
			}
			pack();
			setSize(700, 500);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void agregarListener(ActionListener accion){
		btnCalendario.addActionListener(accion);
		btnTablaPosicion.addActionListener(accion);
		btnSalir.addActionListener(accion);
	}	

}
